package com.optionexplorer.data;

/**
 * Filters call options that have < 0 return (deep in the money)
 * and < 1% downside buffer.
 * @author kgajjala
 *
 */
public class SimpleOptionFilter extends BaseOptionFilter {

	
	protected boolean doesQualify(StockOption opt) {
		boolean result = true;
		
		if (opt.getPercentROE() < 1.0) {
			result = false;
			return result;
		}
		
		if (opt.getPercentDownBuf() < 1.0) {
			result = false;
			return result;
		}
		
		if ((opt.getType() == opt.PUT_OPTION) && 
			(opt.getStrikePrice() > opt.getStockPrice())) {
			result = false;
			return result;
		}
		
		return result;
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
